﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="StockCrawler.Temp.WebForm1" %>

<%@ Register Src="~/UserControl/ucHistoryInfo.ascx" TagPrefix="uc1" TagName="History" %>
<%@ Register Assembly="DevExpress.Web.v14.2, Version=14.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../Scripts/jquery-1.11.3.min.js"></script>
    <style>
        table {
            width: 500px;
            height: 500px;
        }

            table td {
                padding: 10px;
                margin: 10px;
                border: 1px solid #ccc;
            }
    </style>
    <script>
        function createTable() {

            mytable = $('<table></table>').attr({ id: "basicTable" });
            var rows = new Number($("#rowcount").val());
            var cols = new Number($("#columncount").val());
            var tr = [];
            for (var i = 0; i < rows; i++) {
                var row = $('<tr></tr>').attr({ class: ["class1", "class2", "class3"].join(' ') }).appendTo(mytable);
                for (var j = 0; j < cols; j++) {
                    $('<td></td>').text("text" + i + j).appendTo(row);
                }

            }
            console.log("TTTTT:" + mytable.html());
            mytable.appendTo("#box");


        }

        function addACol() {
            var currentNumberOfTDsInARow = $('.tblModel tr:first td').length;
            newColNum = currentNumberOfTDsInARow;
            var rows = $('.tblModel tbody tr');
            for (var i = 0; i < rows.length; i++) {
                var lastTDClone = $(rows[i]).find('td:last').clone();
                $(rows[i]).find('td:last').after(lastTDClone);
            }
        }
    </script>
</head>
<body>
    Row Count:<input type="text" id="rowcount" />
    Column Count:<input type="text" id="columncount" />
    <input type="button" onclick="createTable();" value="Create Table" />
    <div id="box">
    </div>
 <%--<table id="filter">
            <tr>
                <td style="width: 55px; display: none;" align="right">
                    <select style="width: 317px;" id="in50" class="inputBoxSearch">
                        <option value="1"> Tất cả cổ phiếu</option>
                        <option value="2"> Cổ phiếu được đánh dấu </option>
                        <option value="3"> Cổ phiếu được đánh dấu theo ngày </option>
                        <option value="4"> Cổ phiếu trần</option>
                        <option value="5"> Cổ phiếu sàn</option>
                    </select>
                </td>
            </tr>
        </table>--%>
    
</body>
</html>
